home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Utilities Experience
/
The Utilities Experience - Volume 1.iso
/
software
/
misc
/
a-d
/
dopus511
/
dopus_pch.lha
/
ARexx.lha
/
Arexx
/
same.dopus5
< prev
next >
Wrap
Text File
|
1995-06-03
|
1KB
|
47 lines
/*
$VER: CloneSRCE.dopus5 1.0 Jun-01-95
Written by: Gary Gagnon (garyg@wimsey.com)
Purpose: ARexx script to clone SRCE lister(s)
Syntax: From function editor "ARexx DOpus5:ARexx/Same.dopus5 {Qp}"
Note: I keep my DOpus5 ARexx scripts in DOpus5:ARexx
Note: If no listers flagged as SRCE, nothing is opened
*/
options results
parse arg portname
address value portname
'lister query source'
srclist = result
if result = 'RESULT' then
exit 0
do forever
if srclist = '' then
leave
/* the following command line does a little ARexx magic */
/* try this with any other language - it won't be as simple! */
parse var srclist curlist srclist
/*
if you couldn't figure it out, it extracts the first value from
the string and moves the remaining values (if any) back to the
same string. This is what allows this to duplicate all SRCE
listers within this simple loop (and also makes sure it won't be
an endless loop). Languages without type checks can be nice!
*/
'lister new'
newlist = result
'lister copy' curlist newlist
end